
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../global/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./frm.css" />
</head>
<body>
	<div id="perform"></div>
</body>

<script id="tpl-perform" type="text/x-dot-template">
    <div class="aui-content aui-margin-b-15">
		<div id="today">
			<h5 class="date">今日扫券数</h5>
			<h3 class="num">{{=it.today.count}}</h3>
		</div>

        <ul class="history aui-list aui-list-in">
			{{~it.history :v:i}}
				{{? i > 0}}
	            <li class="aui-list-item">
	                <div class="aui-list-item-inner">
	                    <div class="date aui-list-item-title">{{=vdatex(v.date)}}</div>
	                    <div class="num aui-list-item-right">{{=v.count}}</div>
	                </div>
	            </li>
				{{?}}
			{{~}}
		</ul>

		{{? it.history.length > 1}}
			<div class="total">累计：{{=it.total}}</div>
		{{?}}

	</div>
</script>

<script id="tpl-no-perform" type="text/x-dot-template">
	<p class="no-perform">年轻人，你还没有业绩，快去努力</p>
</script>

<script type="text/javascript" src="../../../config.js"></script>
<script type="text/javascript" src="../../../global/script/lib/api.js"></script>
<script type="text/javascript" src="../../../global/script/lib/doT.min.js"></script>
<!-- <script type="text/javascript" src="../../../global/script/lib/zepto.min.js"></script> -->
<script type="text/javascript" src="../../../global/script/mylib.js"></script>
<script type="text/javascript" src="../../../app.js"></script>
<script type="text/javascript" src="./frm.js"></script>

</html>


<script type="text/javascript" src="../../../global/script/_fakeapi.js"></script>
<script type="text/javascript">
	window.mockPerform = [
		{date: '2018-09-03 05:00:00', count: '20'},
		{date: '2018-09-02 05:00:00', count: '10'},
		{date: '2018-09-01 05:00:00', count: '10'},
		{date: '2018-08-31 05:00:00', count: '10'},
		{date: '2018-08-30 05:00:00', count: '10'},
		{date: '2018-08-29 05:00:00', count: '10'},
	]

	window.mockNo = []

	fooPerform();
	// fooNo();
</script>
